package com.itheima.api_date.arrays;

import java.util.Arrays;

/**
 * @author Anomaly
 * @date 2022/12/31 18:15
 */
public class ArrayDemo {
    public static void main(String[] args) {
        int[] arr = {15, 22, 95, 65, 78, 56, 33};
        int[] arr2 = null;
        int[] arr3 = {};
        System.out.println(arr);
        System.out.println(Arrays.toString(arr));
        System.out.println(Arrays.binarySearch(arr, 78));
        System.out.println("================================");
        Arrays.sort(arr);
        System.out.println(arr);
        System.out.println(Arrays.toString(arr));
        System.out.println(Arrays.binarySearch(arr, 78));
        System.out.println(Arrays.binarySearch(arr, 9999));
        System.out.println("==============================");
        System.out.println(Arrays.toString(arr2));
        System.out.println(Arrays.toString(arr3));
    }
}
